package demo1;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
//        BinaryTree.TreeNode root = binaryTree.createTree();
//        List<List<Integer>> lists = binaryTree.levelOrder(root);
//        System.out.println(lists);
        int[] arr1 = {9,3,15,20,7};
        int[] arr2 = {9,15,7,20,3};
        BinaryTree.TreeNode root = binaryTree.buildTree(arr1,arr2);
        binaryTree.preorder(root);
    }
}
